]> dgit.raspbian.org Git - gnome-shell.git/commit
environment: Keep cleanup symmetrical with prepare in ease functions
authorJoan Torres Lopez <joantolo@redhat.com>
Wed, 25 Feb 2026 13:19:41 +0000 (14:19 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:53:54 +0000 (18:53 +0200)
commitaa55ec1da2d5a3076e70e42e515e23209e715aa4
treea424f60f103124059ab2b706881c8b513dce485d
parent0a5b2bbc434d01260038e64a43152cf4f693dea4
environment: Keep cleanup symmetrical with prepare in ease functions

Add a guard to prevent cleanup() from running when prepare() was never
called. Currently cleanup() is called when "stopped" is emitted (which
ensures prepare() was called), in next commits cleanup will be called
from different events which means prepare() may not have been called.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4082>
(cherry picked from commit 841ff6cfa247e69ed2c466c880846d1cceb3eece)
js/ui/environment.js